package org.zoomdev.zoom.dao.adapters.result;

import org.zoomdev.zoom.dao.adapters.ResultSetAdapter;

import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.SQLException;

public class BigDecimalResultSetAdapter implements ResultSetAdapter<BigDecimal> {
    public static final BigDecimalResultSetAdapter ADAPTER = new BigDecimalResultSetAdapter();

    @Override
    public BigDecimal getObject(ResultSet rs, int columnIndex) throws SQLException {
        return rs.getBigDecimal(columnIndex);
    }
}
